define(['vue','common'],function (Vue,common){
    const {createApp} = Vue;
    const Controller = {
        index:function (){
            let app = createApp({
                data(){
                    return {
                        //列表数据
                        listObj:{
                            page:1,
                            limit:10,
                            total:0,
                            list:[]
                        },
                        //搜索条件
                        search:{
                            list:[
                                {
                                    lable:"用户名",
                                    inputType:'text',
                                    name:"username",
                                    operate:"LIKE",
                                    value:""
                                },
                                {
                                    lable:"请求地址",
                                    inputType:'text',
                                    name:"url",
                                    operate:"LIKE",
                                    value:""
                                },
                                {
                                    lable:"请求名称",
                                    inputType:'text',
                                    name:"title",
                                    operate:"LIKE",
                                    value:""
                                },
                                {
                                    lable:"请求IP",
                                    inputType:'text',
                                    name:"ip",
                                    operate:"LIKE",
                                    value:""
                                }
                            ],
                            form:{
                                filter:[],
                                op:[],
                                pk:"id",
                                sort:'id',
                                order:"desc"
                            }
                        },
                        //批量选择
                        selectables:[]
                    }
                },
                created(){
                    this.getList()
                },
                methods:{
                    ...common
                }
            })
            common.load(app,['icon','MuForm'])
            app.mount('#app')
        }
    }
    return Controller;
})